package com.keon.jianbao.enu;

import com.keon.jianbao.R;
import com.keon.jianbao.ui.fragment.HomeFragment;
import com.keon.jianbao.ui.fragment.JianBaoFragment;
import com.keon.jianbao.ui.fragment.MainTweetListFragment;
import com.keon.jianbao.ui.fragment.MyFragemnt;
import com.keon.jianbao.ui.fragment.WebFragment;

/**
 * Created by keon on 2015/9/1.
 */
public enum MainTab {

    INDEX(0, R.string.main_tab_home, R.drawable.tab_icon_home,
            HomeFragment.class),

    JIANBAO(1, R.string.main_tab_jianbao, R.drawable.tab_icon_jianbao,
            JianBaoFragment.class),

    ACTIVITY(2, R.string.main_tab_activity, R.drawable.tab_icon_activity,
            WebFragment.class),

    FRIENDS(3, R.string.main_tab_friends, R.drawable.tab_icon_friends,
            MainTweetListFragment.class),

    ME(4, R.string.main_tab_me, R.drawable.tab_icon_me,
            MyFragemnt.class);

    private int idx;
    private int resName;
    private int resIcon;
    private Class<?> clz;

    private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }


}
